<template>
  <ant-modal modalWidth="800" modalHeight="600" :visible="open" :modal-title="formTitle" :adjust-size="true" :maskClosable="false"
    @cancel="cancel">
    <a-form-model ref="form" :model="form" :rules="rules" slot="content" layout="vertical">
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="销售单编号">
            <a-input v-model="form.orderNumber" readOnly/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12" >
          <a-form-model-item label="处理人" prop="processUserId">
            <select-user
              v-model="form.processUserId"
              select-model="single"
            />
          </a-form-model-item>
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="24">
          <a-form-model-item label="售后描述" prop="remark">
            <a-textarea v-model="form.remark" readOnly :rows="4"/>
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button :disabled="disabled" @click="cancel">
        取消
      </a-button>
      <a-button type="primary" :disabled="disabled" @click="submitFormUser(true)">
        保存
      </a-button>
    </template>
  </ant-modal>
</template>
<script>
import BizPurchaseForm from './BizAfterSaleOrderForm'
export default {
  ...BizPurchaseForm
}
</script>
<style lang="less" scoped>
.table-operations,
body tr.ant-table-expanded-row:hover .table-operations {
  padding-bottom: 8px;
  text-align: right;
}

.table-operations {
  margin-bottom: 16px;
}

.table-operations>button,
.table-operations .ant-input-affix-wrapper {
  margin-right: 8px;
}

.table_title {
  float: left;
  padding-left: 8px;
  font-weight: 600;
  color: #222222;
  line-height: 30px;
}
</style>
